# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-yara
_pkgname="${pkgname/py3-/}-python"
pkgver=4.4.0
pkgrel=0
pkgdesc="The Python interface for YARA"
url="https://virustotal.github.io/yara/"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev yara-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/yara-python/archive/v$pkgver.tar.gz
	use-system-yara.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build --dynamic-linking
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
bc72c2f65e3fe3d7f94728565143b787df6cc63313a3e8b9f159a5cfc3c947f5233674a1213fd2c6454f6165b676da366319794f9fa7c695c43e5523c29a1432  py3-yara-4.4.0.tar.gz
bd19ef0a225ca070d9939d7e2ce6ea5be585130b5e0c4df196cd17ad62aa2e481e61dc40c6bfba8de26fc8f91b720e8f512f657afaa0f96f2609d9f10cfbf0ec  use-system-yara.patch
"
